package com.cyclinggle.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.cyclinggle.cloud.config.FeignConfig;

@FeignClient(name = "github-client", url = "https://api.github.com", configuration = FeignConfig.class)
public interface HelloFeignService {
	
	@GetMapping(value = "/search/repositories")
	String searchRepo(@RequestParam("q") String param);

}
